FROM python:3.8

WORKDIR /app/spider

COPY requirements.txt ./
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt

COPY . .

EXPOSE 22

CMD ["tail", "-f", "/dev/null"]